from django.urls import path
from .views import TagCreateView, TagListView, TagDetailView, TagSimilarView, BlogTagListView, BlogTagSimilarView

urlpatterns = [
    path('admin/create/', TagCreateView.as_view(), name='tag_create'),
    path('admin/getall/', TagListView.as_view(), name='tag_list'),
    path('admin/get/', TagDetailView.as_view(), name='tag_detail_get'),
    path('admin/update/', TagDetailView.as_view(), name='tag_detail_update'),
    path('admin/delete/<int:pk>/', TagDetailView.as_view(), name='tag_detail_delete'),
    path('admin/similar/', TagSimilarView.as_view(), name='tag_similar'),  # 新增相似查询接口
    # 针对博客的接口
    path('blog/getall/', BlogTagListView.as_view(), name='tag_list_blog'),
    path('blog/similar/', BlogTagSimilarView.as_view(), name='tag_similar_blog')
]
